package com.aisino.nmg.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "generator", ignoreUnknownFields = true)
@Data
public class GeneratorProperties {
	// 缓存id值
	private Long appConfigId;
	private final Project project = new Project();
	private final DataSource dataSource = new DataSource();

	@Data
	public static class Project {
		private String name;
		private String description;
		private String artifactId;
		private String groupId;
	}

	@Data
	public static class DataSource {
		private String driverClassName;
		private String url;
		private String username;
		private String password;
	}
}
